package oop2.oop3;

/**
 * @author oldliu
 * @since 1.0
 */
public class Dog {
    //成员变量，实例变量
    public String name;
    public String color;
    public static int numOfLegs=4;

    public void show(){
        System.out.println("这条狗的名字叫："+name+",毛色是"+color);
        System.out.println("有"+numOfLegs+"条腿");
    }
    public static void printLegs(){
        //System.out.println(name+",color:"+color);
        System.out.println("狗有"+numOfLegs+"条腿");
    }
}
